home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / ppc-amigaos / include / clib / layers_protos.h < prev    next >
C/C++ Source or Header  |  2000-02-28  |  3KB  |  72 lines

  1. #ifndef  CLIB_LAYERS_PROTOS_H
  2. #define  CLIB_LAYERS_PROTOS_H
  3.  
  4. /*
  5. **    $VER: layers_protos.h 38.7 (26.3.92)
  6. **    Includes Release 40.15
  7. **
  8. **    C prototypes. For use with 32 bit integers only.
  9. **
  10. **    (C) Copyright 1990-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. #ifndef  EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif
  17. #ifndef  GRAPHICS_LAYERS_H
  18. #include <graphics/layers.h>
  19. #endif
  20. #ifndef  GRAPHICS_CLIP_H
  21. #include <graphics/clip.h>
  22. #endif
  23. #ifndef  GRAPHICS_RASTPORT_H
  24. #include <graphics/rastport.h>
  25. #endif
  26. #ifndef  GRAPHICS_REGIONS_H
  27. #include <graphics/regions.h>
  28. #endif
  29. void InitLayers( struct Layer_Info *li );
  30. struct Layer *CreateUpfrontLayer( struct Layer_Info *li, struct BitMap *bm,
  31.     long x0, long y0, long x1, long y1, long flags, struct BitMap *bm2 );
  32. struct Layer *CreateBehindLayer( struct Layer_Info *li, struct BitMap *bm,
  33.     long x0, long y0, long x1, long y1, long flags, struct BitMap *bm2 );
  34. LONG UpfrontLayer( long dummy, struct Layer *layer );
  35. LONG BehindLayer( long dummy, struct Layer *layer );
  36. LONG MoveLayer( long dummy, struct Layer *layer, long dx, long dy );
  37. LONG SizeLayer( long dummy, struct Layer *layer, long dx, long dy );
  38. void ScrollLayer( long dummy, struct Layer *layer, long dx, long dy );
  39. LONG BeginUpdate( struct Layer *l );
  40. void EndUpdate( struct Layer *layer, unsigned long flag );
  41. LONG DeleteLayer( long dummy, struct Layer *layer );
  42. void LockLayer( long dummy, struct Layer *layer );
  43. void UnlockLayer( struct Layer *layer );
  44. void LockLayers( struct Layer_Info *li );
  45. void UnlockLayers( struct Layer_Info *li );
  46. void LockLayerInfo( struct Layer_Info *li );
  47. void SwapBitsRastPortClipRect( struct RastPort *rp, struct ClipRect *cr );
  48. struct Layer *WhichLayer( struct Layer_Info *li, long x, long y );
  49. void UnlockLayerInfo( struct Layer_Info *li );
  50. struct Layer_Info *NewLayerInfo( void );
  51. void DisposeLayerInfo( struct Layer_Info *li );
  52. LONG FattenLayerInfo( struct Layer_Info *li );
  53. void ThinLayerInfo( struct Layer_Info *li );
  54. LONG MoveLayerInFrontOf( struct Layer *layer_to_move,
  55.     struct Layer *other_layer );
  56. struct Region *InstallClipRegion( struct Layer *layer,
  57.     struct Region *region );
  58. LONG MoveSizeLayer( struct Layer *layer, long dx, long dy, long dw, long dh );
  59. struct Layer *CreateUpfrontHookLayer( struct Layer_Info *li, struct BitMap *bm,
  60.     long x0, long y0, long x1, long y1, long flags, struct Hook *hook,
  61.     struct BitMap *bm2 );
  62. struct Layer *CreateBehindHookLayer( struct Layer_Info *li, struct BitMap *bm,
  63.     long x0, long y0, long x1, long y1, long flags, struct Hook *hook,
  64.     struct BitMap *bm2 );
  65. struct Hook *InstallLayerHook( struct Layer *layer, struct Hook *hook );
  66. /*--- functions in V39 or higher (Release 3) ---*/
  67. struct Hook *InstallLayerInfoHook( struct Layer_Info *li, struct Hook *hook );
  68. void SortLayerCR( struct Layer *layer, long dx, long dy );
  69. void DoHookClipRects( struct Hook *hook, struct RastPort *rport,
  70.     struct Rectangle *rect );
  71. #endif     /* CLIB_LAYERS_PROTOS_H */
  72.